package com.lindroy.jetpacknotes.databinding

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.lindroy.jetpacknotes.R
import com.lindroy.jetpacknotes.extensions.launchAct
import kotlinx.android.synthetic.main.activity_data_binding.*

class DataBindingActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_data_binding)
        btnSimple.setOnClickListener {
            launchAct<DataBindingSimpleActivity>()
        }
        btnEvent.setOnClickListener {
            launchAct<DataBindingEventActivity>()
        }
    }
}